package models

import (
	"gitee.com/dromara/carbon/v2"
	"github.com/shopspring/decimal"
)

// MemberDiscount 会员折扣
type MemberDiscount struct {
	ID          int64           `json:"id" gorm:"id"`                     // ID
	MemberLevel int64           `json:"member_level" gorm:"member_level"` // 会员等级
	Discount    decimal.Decimal `json:"discount" gorm:"discount"`         // 折扣
	CreatedAt   carbon.Carbon   `json:"created_at" gorm:"created_at"`     // 创建时间
	UpdatedAt   carbon.Carbon   `json:"updated_at" gorm:"updated_at"`     // 修改时间
}

// TableName 表名称
func (*MemberDiscount) TableName() string {
	return "member_discount"
}
